package com.jzlg.miniec.service.impl;

import com.jzlg.miniec.entity.Product;
import com.jzlg.miniec.mapper.ProductMapper;
import com.jzlg.miniec.service.ProductService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author StCat
 * @Date 2021/11/29 15:25
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductMapper productMapper;



    @Override
    public List<Product> findProducts() {
        return  productMapper.selectProducts();
    }
}
